]> permondes.de Git - Analog_Engine.git/blame_incremental - AESL/Charge in em field.AESL
Mass on Sphere, open amplifier, division
[Analog_Engine.git] / AESL / Charge in em field.AESL
... / ...
CommitLineData
1IDENTIFICATION DIVISION
2PROGRAM-ID ChargeInEMfield
3VERSION 20240116
4COMMENT A mass m with charge q>0 is located in a static electro-magnetic field [0,0,E], [0,-B,0].
5COMMENT Find the trajetory
6COMMENT Differential equation (Lorentz force): x'' = omega*z', z'' = a*omega^2 - omega*x'
7COMMENT good start settings are omega=0,92, a*omega^2=0,05
8
9ENVIRONMENT DIVISION
10ENGINE Anabrid-THAT
11TIMEBASE 1ms # corresponds to 1s
12REQUIRES INTEGRATOR 4
13REQUIRES INVERTER 1
14REQUIRES COEFFICIENT 3
15
16DATA DIVISION
17OUTPUT OUTPUT.X x
18OUTPUT OUTPUT.Z z
19
20PROGRAM DIVISION
21x'' -> INTEGRATOR.1 -> -x'
22-x' -> INTEGRATOR.2 -> x
23-x' -> COEFFICIENT.6 -> -omega*x'
24+1 -> COEFFICIENT.7 -> a*omega^2
25a*omega^2, -omega*x' -> INTEGRATOR.4 -> -z' # input is z''
26-z' -> INTEGRATOR.5 -> z
27-z' -> INVERTER.1 -> z'
28z' -> COEFFICIENT.5 -> omega*z' = x''
29
30OPERATION DIVISION
31MODE REPEAT
32OP-TIME 0,21ms